<div id="titulo">Edit Registro de Nombre</div>
<?php echo form_open_multipart('registronombre/save', array('name' => 'estatus','id' => 'commentForm'));?>
	<table class="tablaform" width="100%" border="0">		
		<tr>
			<td><b>Descripci&oacute;n:</b> </td>
			<td><input type="text" name="description" class="required" id="description" maxlength="100" size="40" value="<?php echo $objetos->getDescripcion()?>" /></td>
		</tr>
		  <input type="hidden" name="idApellido" value="<?php echo $objetos->getIdRegistroNombre()?>"></input>
		  <input type="hidden" name="usuario" value="false"></input>
		<tr>
			<td><b>Apellido:</b> </td>
			<td>
			   <select class="required" name="apellido">
			      <option></option>
			      <?php foreach ($apellido as $k):?>
			          <?php if ($objetos->getIdApellido() == $k->getIdApellido()) {?>
			            <option value="<?php echo $k->getIdApellido()?>" selected="selected"><?php echo $k->getDescripcionApellido()?></option>
			          <?php }else{?>
			            <option value="<?php echo $k->getIdApellido()?>"><?php echo $k->getDescripcionApellido()?></option> 
			      <?php } endforeach;?>
			   </select>
			</td>
		</tr>
		
		<tr> 
			<td><b>Idioma:</b> </td>
			<td>
			   <select class="required" name="idioma">
			      <option></option>
			      <?php foreach ($idioma as $k):?>
			       <?php if ($k->getIdIdioma() == $objetos->getIdIdioma()) { ?>
			         <option value="<?php echo $k->getIdIdioma()?>" selected="selected"><?php echo $k->getDescIdioma()?></option>
			       <?php }else{?>
			         <option value="<?php echo $k->getIdIdioma()?>"><?php echo $k->getDescIdioma()?></option>
			      <?php } endforeach;?>
			   </select>
			</td>
		</tr>
		
     	<tr><td colspan="2"><hr /></td></tr>
		<tr><td><input type="submit" value="Edit" /></td>
		 <td><a href="<?php echo site_url().'/registronombre' ?>"><input type="button" value="Atras" align="center"/></a></td>
		</tr>
	</table>
</form>